import { registerMask } from '@kunlun/mobile-dependencies'


/**
 * registerMask 第二个入参为{moduleName: 'resource'}即注册了resource(资源)应用的母版
 *
 * resource来源: 通常是浏览器url上的module
 *
 * 拿掉菜单
 * `<sidebar>
 *    <widget widget="nav-menu" height="100%" />
 *  </sidebar>`
 * 
 * 
 * */
const registerModuleMask = () => {
    const LayoutXML = `
<mask>
  <widget widget="user" />
  <widget widget="nav-menu" height="100%" app-switcher="true" menu="true" />
  <widget widget="main-view" />
</mask>`;
    registerMask(LayoutXML, { moduleName: 'DemoCore'})
}

registerModuleMask();